package com.gxuwz.eschool;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;

public class GonggaoActivity extends AppCompatActivity {
    private Button button;

    @Override
    protected void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.gonggao);
        button = findViewById(R.id.rt_xwgg);
        CardView cardView1 = findViewById(R.id.cw1);
        CardView cardView2 = findViewById(R.id.cw2);
        cardView1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // 在这里实现跳转逻辑，例如启动新的 Activity
                Intent intent = new Intent(GonggaoActivity.this, GG1Activity.class);
                startActivity(intent);
            }
        });
        cardView2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(GonggaoActivity.this, GG2Activity.class);
                startActivity(intent);
            }
        });
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
               finish();
            }
        });

    }
}
